package com.fileupload.config;

import com.fileupload.server.ConnectionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 应用配置类
 * 用于注册系统中需要的各种Spring Bean
 * @author 小乙
 */
@Configuration
public class AppConfig {
    
    /**
     * 注册ConnectionFactory为Spring Bean
     * <p>ConnectionFactory用于创建与远程服务器的连接</p>
     * 
     * @return ConnectionFactory实例
     */
    @Bean
    public ConnectionFactory connectionFactory() {
        return new ConnectionFactory();
    }
}